//
//  GlobalFunction.h
//  AmountBody
//
//  Created by smm on 17/12/6.
//  Copyright (c) 2017年 RCMTM. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Constants.h"

void layoutViews(VoidBlock portrait, VoidBlock landscape);

@interface GlobalFunction : NSObject

#pragma mark - 基本方法
#pragma mark -- 正则验证
//封装一个执行正则验证的方法，传入一个正则表达式和一个需要的验证的值就会返回是否通过的结果
+(BOOL)regex_match:(NSString *)regex andValue:(NSString *)value;
+(BOOL)anotherRegex_match:(NSString *)regexStr andValue:(NSString *)value;

#pragma mark -- 状态栏显示或隐藏加载圈
+(void)shownetActivityindicator;
+(void)hidenetActivityindicator;

#pragma mark -- Object/JSONString
+(NSDictionary *)globalObjectToJSONStringWithObject:(NSString*)object;


@end
